package com.guigu.qingcheng.orderservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.qingcheng.pojo.order.TbReturnOrder;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2020-07-08
 */
public interface TbReturnOrderMapper extends BaseMapper<TbReturnOrder> {

    @Select("SELECT t.num Kc,t.spec,i.* FROM tb_order_item i,qingcheng_goods.`tb_sku` t,tb_return_order b \n" +
            "WHERE i.sku_id=t.id AND b.order_id=i.order_id\n" +
            "AND b.id = #{id}")
    public List<Map> listgoods (@Param("id") String id);

}
